package com.flying.invest.base.model;

import java.util.Date;

import com.flying.framework.data.Data;
import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="i_currency_history",title="币种汇率历史", table="i_currency_history", primaryKeys={"history_id"})
public class CurrencyHistory extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "i_currency_history";
	
	public final static String HISTORY_ID = "history_id";
	public final static String CURRENCY_ID = "currency_id";
	public final static String CURRENCY = "currency";
	public final static String RATE = "rate";
	public final static String RECORD_DATE = "record_date";
	public final static String CREATE_TIME = "create_time";
	
	
	@Param(value=HISTORY_ID,   required=true,   maxlength=0,	desc="ID" , generator=Codes.AUTO_INCREMENT)
	private Long historyId;
	
	@Param(value=CURRENCY_ID,   required=true,   maxlength=0,	desc="币种ID" )
	private Long currencyId;
	
	@Param(value=CURRENCY,   required=true,   maxlength=3,	desc="币种代码" )
	private String currency;
	
	@Param(value=RATE,   required=true,   maxlength=0,	desc="汇率" )
	private Double rate;
	
	@Param(value=RECORD_DATE,   required=true,   maxlength=0,	desc="汇率日期" )
	private Date recordDate;
	
	@Param(value=CREATE_TIME,   required=false,   maxlength=0,	desc="创建时间" )
	private Date createTime;
	
	
	public Long getHistoryId() {
		return this.historyId;
	}
	
	public void setHistoryId(Long historyId) {
		this.historyId = historyId;
	}
	
	public Long getCurrencyId() {
		return this.currencyId;
	}
	
	public void setCurrencyId(Long currencyId) {
		this.currencyId = currencyId;
	}
	
	public String getCurrency() {
		return this.currency;
	}
	
	public void setCurrency(String currency) {
		this.currency = currency;
	}
	
	public Double getRate() {
		return this.rate;
	}
	
	public void setRate(Double rate) {
		this.rate = rate;
	}
	
	public Date getRecordDate() {
		return this.recordDate;
	}
	
	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	

}